# cp
# 用于复制文件或目录
#  cp [-r] source dest

# 案例
# 1. 将hello.txt复制到itcast目录中
touch hello.txt
mkdir itcast
cp hello.txt itcast/
rm -rf itcast

# 2. 将hello.txt复制到当前目录，并改名为hi.txt
cp hello.txt hi.txt
rm hi.txt

# 3. 将itcast目录和目录下所有文件复制到itheima目录下
mkdir itheima
mkdir itcast
touch itcast/1.txt
vi itcast/1.txt
cp -r itcast/ ./itheima/
rm -rf itcast itheima

# 4. 将itcast目录下所有文件复制到itheima目录下
mkdir itcast itheima itcast/test
touch itcast/1.txt itcast/2.txt
cp -r itcast/* ./itheima/
rm -rf itcast itheima